
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Success</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
    </script>
</head>
<body>
<h1>Welcome!</h1>
<p>Your ID: <span th:text="${id}"></span></p>
<button id="bu">获取Session</button>
</body>
<script>
    $("#bu").click(function(){
        $.get("/getSession",function(data,status){
            alert("返回数据: " + data );
        });
    });

</script>
</html>

